package com.castle.fortress.admin.contract.info.mapper;

import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.castle.fortress.admin.contract.info.entity.ContractEntity;
import java.util.Map;
import java.util.List;
import com.castle.fortress.admin.contract.info.dto.ContractDto;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
/**
 * 合同信息表Mapper 接口
 *
 * @author 
 * @since 2025-04-23
 */
public interface ContractMapper extends BaseMapper<ContractEntity> {

	List<ContractEntity> queryList(@Param("map")Map<String, Long> pageMap, @Param("contractEntity") ContractEntity contractEntity);

	/**
	 * 自定义SQL分页查询合同信息
	 *
	 * @param page 分页参数
	 * @param contractDto 查询条件
	 * @return 分页结果
	 */
	IPage<ContractDto> pageContractWithSql(Page<ContractDto> page, @Param("query") ContractDto contractDto);

}
